<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
        1.绝对定位是脱离标准流的，和float类似
        2.
         */
        div:first-child {
            width: 100px;
            height: 100px;
            background-color: pink;
            position: absolute;
            left: 20px;
            top: 20px;
        }

        div:last-child {
            width: 200px;
            height: 150px;
            background-color: purple;
        }
    </style>
</head>

<body>
    <div></div>
    <div></div>
</body>

</html>